package edu.zut2.poly_demo;

/**
 * 鸽子
 */
public class Pigeon extends Bird{
    public Pigeon() {
        super();
    }

    public Pigeon(String name, String color, String habit) {
        super(name, color, habit);
    }

    /**
     * 子类重写父类的fly方法
     */
    @Override
    public void fly() {
        System.out.println("鸽子在天空成群的飞......,可以" + habit);
    }

    public void send(){
        System.out.println(name + "鸽子正在送信");
    }

}
